home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / netmail / yep13.zip / YX-11.ZIP / GRBQUOTE.DOC < prev    next >
Text File  |  1996-01-28  |  2KB  |  45 lines

  1. GRBQUOTE (Grab Quote) is a very simple little hack of a utility to output
  2. a random section of a text file.
  3.  
  4. Each section of the quote file (including the first section) must begin with
  5. ten or more dashes (-) starting in the first left hand text column (only the
  6. first ten characters are checked). (See the "QUOTES" file provided, for an
  7. example).
  8.  
  9. GRBQUOTE will accept a limited number of command line parameters:
  10.  
  11. /? - a brief summary of command line parameters.
  12. /P<filename> - the path/filename of the "quote" file to read text from.
  13. /S - this will print a brief statistical summary about your quote file
  14.      at the bottom of the output section (ie. 'quote')
  15. /L - used with the /S line will output the 'stats' left flushed.
  16.  
  17. Standard I/O redirection (>) can be used to send the output to a file.
  18.  
  19. For example. The following command line and output could look like this:
  20.  
  21. GRBQUOTE /pQUOTES /s
  22.  
  23. Another blast from Rivenrock shivered the air. It snatched Mhoram's head up,
  24. and he faced Covenant with tears streaming down his cheeks. "It is as I have
  25. said," he breathed achingly. "Madness is not the only danger in dreams."
  26.  
  27.                            _The Illearth War_, Stephen R. Donaldson, ch. 26
  28.                                       [Quote #91 of 130 (avg. 16.51 lines)]
  29.  
  30.  
  31. The "average" displayed is the average number of lines per quote/section
  32. in the quote/text file.
  33.  
  34. Info for hackers: you can set the default quote/text file by hex editing
  35. grbquote.exe and entering the path where you find a field of @@@@@@@@@@@'s.
  36. Please leave the trailing @ characters to pad to the end of the string
  37. (maximum 50 characters).
  38.  
  39. More hacker info: if for some reason you want something other than ten
  40. dashes separating sections of your text file, use a hex editor and find
  41. the ---------- string in the grbquote.exe and change it to whatever you
  42. prefer. It must be ten characters - no other restrictions.
  43.  
  44. email problems to: as544@torfree.net
  45.